<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
  <title>公司账号管理</title>
</head>

<body>
  <c:if test="${not empty message}">
    <div id="message" class="alert alert-success"><button data-dismiss="alert" class="close">×</button>${message}</div>
  </c:if>
  <table id="contentTable" class="table table-striped table-bordered table-condensed">
    <thead><tr><th width="40%">登录名</th><th width="40%">姓名</th><th width="20%">管理</th></tr></thead>
    <tbody>
    <c:forEach items="${hrAccounts.content}" var="hrAccount">
      <tr>
        <td><a href="${ctx}/admin/company/${companyId}/account/update/${hrAccount.id}">${hrAccount.loginName}</a></td>
        <td>${hrAccount.name}</td>
        <td><a href="${ctx}/admin/company/${companyId}/account/delete/${hrAccount.id}">删除</a></td>
      </tr>
    </c:forEach>
    </tbody>
  </table>
  
  <div><a class="btn" href="${ctx}/admin/company/${companyId}/account/register">创建账号</a>&nbsp;  
        <input id="cancel_btn" class="btn" type="button" value="返回" onclick="history.back()"/></div>
</body>
</html>
